package com.yonyou.cloud.member.domainmodel.entities.coupon;

import com.yonyou.cloud.member.domainmodel.vo.CouponId;
import com.yonyou.cloud.member.domainmodel.vo.MemberId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;

@ApiModel(description = "折扣优惠券")
public class DiscountCoupon extends Coupon {
    @ApiModelProperty(value = "启用金额")
    private BigDecimal thresholdMoney;
    @ApiModelProperty(value = "折扣额度")
    private BigDecimal discount;

    public DiscountCoupon() {
        super();
    }

    public DiscountCoupon(CouponId id, MemberId memberId, String title) {
        super(id, memberId, title);
    }

    public BigDecimal getThresholdMoney() {
        return thresholdMoney;
    }

    public DiscountCoupon setThresholdMoney(BigDecimal thresholdMoney) {
        this.thresholdMoney = thresholdMoney;
        return this;
    }

    public BigDecimal getDiscount() {
        return discount;
    }

    public DiscountCoupon setDiscount(BigDecimal discount) {
        this.discount = discount;
        return this;
    }
}
